<?php

if( isset($_GET['lib']) && $_GET['lib'] == "uploadify_removefile") {
	$fileToDelete = explode("lib/uploadify", $_SERVER['SCRIPT_FILENAME']);
	$fileToDelete = $fileToDelete[0]."pics/objects/". $_GET['file'];
	if(is_file($fileToDelete)) {
		unlink($fileToDelete); // Permet de supprimer l'image
	} 
	
} 


?>